<jsp:directive.include file="includes/top.jsp" />


<div id="cookiesDisabled" class="errors" style="display:none;">
    <h2><spring:message code="screen.cookies.disabled.title" /></h2>
    <p><spring:message code="screen.cookies.disabled.message" /></p>
</div>


<c:if test="${not empty registeredService}">
    <c:set var="registeredServiceLogo" value="images/webapp.png"/>
    <c:set var="registeredServiceName" value="${registeredService.name}"/>
    <c:set var="registeredServiceDescription" value="${registeredService.description}"/>

    <c:choose>
        <c:when test="${not empty mduiContext}">
            <c:if test="${not empty mduiContext.logoUrl}">
                <c:set var="registeredServiceLogo" value="${mduiContext.logoUrl}"/>
            </c:if>
            <c:set var="registeredServiceName" value="${mduiContext.displayName}"/>
            <c:set var="registeredServiceDescription" value="${mduiContext.description}"/>
        </c:when>
        <c:when test="${not empty registeredService.logo}">
            <c:set var="registeredServiceLogo" value="${registeredService.logo}"/>
        </c:when>
    </c:choose>
</c:if>
<body>
<div class="login">
    <h1 class="header">
        <%--<spring:message code="screen.welcome.welcome" />--%>
        <%=ConfigManager.getConfig("sys.title")%>
    </h1>
  	<div class="container">
 	<img class="left-img" src="<%=basePath%>/images/login-left-img.png"/>
    <form:form method="post" id="fm1" commandName="${commandName}" htmlEscape="true" cssClass="loginForm">
    	<h2>&#x767B;&#x5F55;</h2>
        <form:errors path="*" id="msg" cssClass="warning-area errors" element="div" htmlEscape="false" />
        <input  type="hidden" id="yzmmsg" value="&#x9A8C;&#x8BC1;&#x7801;&#x4E0D;&#x6B63;&#x786E;"/>
        <p>
            <c:choose>
                <c:when test="${not empty sessionScope.openIdLocalId}">
                    <strong><c:out value="${sessionScope.openIdLocalId}" /></strong>
                    <input type="hidden" id="username" name="username" value="<c:out value="${sessionScope.openIdLocalId}" />" />
                </c:when>
                <c:otherwise>
                    <spring:message code="screen.welcome.label.netid.accesskey" var="userNameAccessKey" />
                    <form:input cssClass="username" cssErrorClass="username wrong" id="username" size="25" tabindex="1" accesskey="${userNameAccessKey}" path="username" autocomplete="off" htmlEscape="true" />
                </c:otherwise>
            </c:choose>
        </p>
		<!-- 密码 -->
         <p>
            <input class="password" name="password" type="password"  id="password" />
            <input class="password" type="text" value="&#x5BC6;&#x7801;6-18&#x4F4D;" id="text"/><!--unusable-->
      	 </p>
      	<p class="verify">
                    <!-- 输入验证码 -->
                    <input class="check" name="check" type="text"  id="check" />
                    <img class="check-img" id="ck" src="checkcode" alt="&#x9A8C;&#x8BC1;&#x7801;&#x56FE;&#x7247;" onclick="changecode();"/>
                    <a class="change" href="javascript:void(0);" onclick="changecode();">&#x770B;&#x4E0D;&#x6E05;&#xFF0C;&#x6362;&#x4E00;&#x5F20;</a>
       </p>
 		<p style="display: none;">
                   <input class="remember" id="remember" type="checkbox" />
                   <label for="remember">记住密码</label>
                   <a class="forget" href="javascript:void(0);">忘记密码？</a>
        </p> 
		<!-- 按钮 -->
            <input type="hidden" name="lt" value="${loginTicket}" />
            <input type="hidden" name="execution" value="${flowExecutionKey}" />
            <input type="hidden" name="_eventId" value="submit" />
            <input class="btn" type="submit"  value="<spring:message code="screen.welcome.button.login" />"/>
    </form:form>
</div>
</div>
<jsp:directive.include file="includes/bottom.jsp" />
<script type="text/javascript">
	function changecode()
	{
		 document.getElementById('ck').src="checkcode?num="+Math.random();
	}
	
	$(function() {
		changecode();
		
	})
</script>
